package cn.edu.hbvtc.qms.persist;

import java.util.List;

import cn.edu.hbvtc.qms.domain.Department;
import cn.edu.hbvtc.qms.domain.EvalPeriod;
import cn.edu.hbvtc.qms.domain.Term;

public interface IEvalPeriodDao extends IDao<EvalPeriod, Integer> {

	//通过院系管理员的id查找本院系的课程评价时间记录
	EvalPeriod findEvalPeriodByUserId(int userId);
	
	//查找某院系某学期当前有效的课程评价时间段
	EvalPeriod findEvalPeriodByDepartment(Department dept, Term term);
	
	//获得当前学期的最新评价时间段对象
	EvalPeriod findLateEvalPeriodByDepartmentInThisTerm(Department dept, Term term);
	
	//获得部门本学期评价时间段列表
	List<EvalPeriod> findEvalPeriodsInDeptAndTerm(Department dept, Term term);
}
